<%@include file="/header.jsp"%>
<%@ page language="java" contentType="text/html" %>
<%@ page import="dataGateway.UserTable" %>

<jsp:useBean id="dao" class="domainLogic.User" scope="session"/>
<jsp:setProperty name="dao" property="*"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html">
<style type="text/css">

 #col_text {width:150px}
 #col_input {width:340px}

#redtext {color:red}

#navcontainer {
        background: #f0e7d7;
        width: 70%;
        margin: 0 left;
        padding: 1em 0;
        font-family: georgia, serif;
        font-size: 13px;
        text-align: left;
        text-transform: lowercase;
}
</style>
<title>User Information</title></head>
<body>

<form method="post" action="<%=common.JspUtil.URL_CONTENT_PAGE%>/members/addMemberProcess.jsp">
<h3>Member detail</h3>
<p id="redtext">Please check your details!</p>
<table border="2" cellpadding="3" cellspacing="0" style="border-collapse:collapse;"
rules="rows" frame="hsides">
		<tr>
		<td colspan="2"></td>
		</tr>
		<tr>
		<td></td>
		<td> <input  type="submit" value="Register">
		<input  type="button" value="Modify" onClick="history.go(-1)"></td>
		</tr>
	<tr>
		<td>username</td>
		<td><%=dao.getUsername() %></td>
	</tr>
	<tr>
		<td>name</td>
		<td><%=dao.getName() %></td>
	</tr>
	<tr>
		<td>password</td>
		<td><%=dao.getPasswd() %></td>
	</tr>
	<tr>
		<td>e-mail</td>
		<td><%=dao.getEmail() %></td>
	</tr>
	<tr>
		<td>phone</td>
		<td><%=dao.getPhone() %></td>
	</tr>
	<tr>
		<td>Address</td>
		<td><%=dao.getAddress() %></td>
	</tr>		
</table>
</form>

</body>
</html>
<%@include file="/footer.jsp"%>